<?php
/*
  * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */

//segurança
require_once('com/fabriciojf/security/Permission.class.php');
Permission::requireInRole(array('admin','usuario'));
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>JumboCms Administra&ccedil;&atilde;o</title>
        <link rel="shortcut icon" href="templates/themes/adm-default/images/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" href="templates/themes/adm-default/style.css" media="all" type="text/css" />
        <script type="text/javascript" src="com/fabriciojf/include/menu.js"></script>
    </head>
    <body>
        <div id="header">
        </div>

        <div id="menu-superior">
            <span>JumboCms</span> - Sistema de Gerenciamento de Conte&uacute;do - <span>Abertura de Ticket</span>
        </div>

        <div id="content-admin">&nbsp;
            {$menusuperior}
            <table>
                <tr>
                    <th colspan="2" class="titulo">Dados do Chamado:</th>
                </tr>
                <tr>
                    <th>Telefone</th>
                    <td class="texto">{$telefone}</td>
                </tr>
                <tr>
                    <th>Assunto</th>
                    <td class="texto">{$assunto}</td>
                </tr>
                <tr>
                    <th>Aberto Por</th>
                    <td class="texto">{$usuarioTicket}</td>
                </tr>
                <tr>
                    <th>Status</th>
                    <td class="texto">{$statusTicket}</td>
                </tr>
                <tr>
                    <th colspan="2">Descri&ccedil;&atilde;o</th>
                </tr>
                <tr>
                    <td colspan="2" class="texto">{$mensagem}</td>
                </tr>
            </table>
            <br /><br /><br />

            <form action="do.php?action=HistCriar" method="post">
                <input type="hidden" name="idTicket" size="30" value="{$idTicket}"/>
                <input type="submit" class="botao" name="redirect" value="Inserir Mensagem">
            </form>
            <form action="do.php?action=TicketAbrir&idTicket={$idTicket}" method="post">
                <input type="submit" class="botao" value="Atualizar">
            </form>
            <table>
                <tr>
                    <th colspan="4" class="titulo">Hist&oacute;rico de Mensagens:</th>
                </tr>
                <tr>
                    <th>Id</th>
                    <th>Mensagem</th>
                    <th>Data/Hora</th>
                    <th>Usuario</th>
                </tr>
                <!-- abre a sessão do loop -->
                {section name=i loop=$idHistorico}
                <tr>
                    <td class="texto">{$idHistorico[i]}</td>
                    <td class="texto">{$mensagemHist[i]}</td>
                    <td class="texto">{$dataHoraHist[i]}</td>
                    <td class="texto">{$usuarioHist[i]}</td>
                </tr>
                {/section}
            </table>
            {$proximaPagina}
            {$paginaAnterior}


            &nbsp;
        </div>
        <div id="footer-content">
            <div id="bloco">
                <span>Recursos do Site</span>
                <ul>
                    {section name=i loop=$menuon}
                    <li>{$menuon[i]}</li>
                    {/section}
                </ul>
                <span>Tickets</span>
                <ul>
                    {section name=i loop=$menuticket}
                    <li>{$menuticket[i]}</li>
                    {/section}
                </ul>
            </div>
            <div id="bl2">
                <span>Links Internos</span>
                <ul>
                    <li><a href="#">Localizar no Site</a></li>
                    {section name=i loop=$menupage}
                    <li>{$menupage[i]}</li>
                    {/section}
                </ul>
            </div>
            <div id="bl2">
                <span>JumboCms</span>
                <ul>
                    <li><a href="http://fabriciojf.com">Suporte Jumbo</a></li>
                    <li><a href="mailto:fabriciojf@gmail.com">Entre em Contato</a></li>
                </ul>
                <span>Sobre o Autor</span>
                <ul>
                    <li><a href="http://fabriciojf.com">Sobre o Autor</a></li>
                </ul>
            </div>
            <div class="clear"></div>
        </div>
        <div id="fim-footer"></div>
        <div id="margin-bottom">
            <p>JumboCMS by Fabricio S Costa. Todos os Direitos Reservados. <br />
            Theme By <a href="http://fabriciojf.com">fabriciojf</a></p>
        </div>
    </body>
</html>
